﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Threading;
using System.Text;
using System.Diagnostics;
namespace SplashTest
{
    
    static class Program
    {
        public static SplashObject SplashObj;
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
           //出现“数据处理中，请稍后的闪屏界面”
            SplashObj = SplashObject.GetSplash();

            //睡眠5秒，模式系统加载
            Thread.Sleep(4000);
            //关闭闪屏
            SplashObj.Dispose();

            string path = System.IO.Directory.GetCurrentDirectory();
            CreateProcess(path +="\\QRJEditor.dot", "");

            
        }


        public static void CreateProcess(string strFileName, string strArguments)
        {
            try
            {
                 Process proc = new Process();
                 proc.StartInfo.FileName = strFileName;
                 proc.StartInfo.Arguments = strArguments;
                 proc.Start();
            }
            catch
            {
            	
            }
           
            //proc.WaitForExit(); 
        } 
    }
}